package cn.fuck;

import cn.shit.JingTaiNeiBu;

public class Out {
    private int x = 9;
    {
        System.out.println(x);
    }
    // 执行完外部类构造器再进入内部类执行
    public class In {
        final static int x = 9;
        {
//
            // 鞥严格的语法
            Out.this.x -= 5;
            System.out.println(x);
        }

        public In() {
            System.out.println("Int Constructor");
        }
    }

    public Out() {
        System.out.println("Out Constructor");
    }

    public  void use() {

        // 更严格的语法
        //In in = this.new In();
//        In in = new In();

       class In {
            final static int x = 9;
            {

                // 鞥严格的语法
                Out.this.x -= 5;
                System.out.println(x);
            }

            public In() {
                System.out.println("Int Constructor");
            }
        }
    }

    public static void main(String[] args) {
//        Out out = new Out();
//        Out.In in = out.new In();
        System.out.println(JingTaiNeiBu.getMinAndMax(new int[]{2, 3}));
    }
}
